// 导入
import request from '@/utils/request'

// 分页查询
export const getPage = (params) => {
  return request({
    url: '/outdoor/page',
    method: 'GET',
    params
  })
}
// 查询全部
export const all = () => {
  return request({
    url: '/outdoor/all',
    method: 'GET'
  })
}
// 新增
export const add = (data) => {
  return request({
    url: '/outdoor/save',
    method: 'POST',
    data
  })
}

// 修改
export const update = (data) => {
  return request({
    url: '/outdoor/update',
    method: 'POST',
    data
  })
}
// 删除
export const del = (data) => {
  return request({
    url: '/outdoor/delete',
    method: 'POST',
    data
  })
}
// 批量删除
export const delBatch = (data) => {
  return request({
    url: '/outdoor/delBatch',
    method: 'POST',
    data
  })
}
